GroupWaitForTrigger

A group starts a new move when the trigger condition is met.

Syntax

KsCommandStatus GroupWaitForTrigger(
     int Index,
     int TriggerIndex,
     McBufferMode BufferMode
);

Parameters

Index: the index of a trigger target. Indexes are zero based. For example, if you want to use Group 0 to trigger Group 1 to do something, Index is 1.

TriggerIndex: the index of a trigger source. It is equal to the Index in SetTrigger. You can have up to 16 triggers.

BufferMode: the buffer mode. Triggers can either start immediately or be buffered. See the McBufferMode type.

Return value

Returns the KsCommandStatus structure.

Example

N/A

Requirements

  RT Win32
Minimum supported version 4.3 4.3
Header ksmotion.h ksmotion.h
Library KsApi_Rtss.lib KsApi.lib

See also

AxisWaitForTrigger

GetTrigger

SetTrigger